﻿using Eleven_TwoWeek_HD.DAL;
using Eleven_TwoWeek_HD.Model;

namespace Eleven_TwoWeek_HD.BLL
{
    public class StoresBll
    {
        private readonly StoresDal storesDal;

        public StoresBll(StoresDal _storesDal)
        {
            storesDal = _storesDal;
        }
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="G"></param>
        /// <returns></returns>
        public int StoresAdd(Stores G)
        {
            try
            {
                return storesDal.StoresAdd(G);
            }
            catch (Exception)
            {

                throw;
            }
        }
        /// <summary>
        /// 绑定下拉框
        /// </summary>
        /// <returns></returns>
        public List<Stores> GetShowAll()
        {
            try
            {
                return storesDal.GetShowAll();
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
